package com.LeetCode;

public class 大小写转换
{
    public static void main(String[] args)
    {
        System.out.println(toLowerCase("asSDHJKL"));
    }

    public static String toLowerCase(String str)
    {
        char[] chars = str.toCharArray();

        for (int i = 0; i < chars.length; i++)
        {
            if (chars[i] >= 'A' && chars[i] <= 'Z')
            {
                chars[i] += 32;
            }
        }
        return String.valueOf(chars);
    }
}
